package com.shensi.appCollect.dao;

import com.shensi.appCollect.pojo.FleetCardSub;
import com.shensi.appCollect.pojo.FleetCardSubVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FleetCardSubMapper {

    FleetCardSubVo selectFleetCardSub(@Param("enterpriseId") Long enterpriseId, @Param("userId") Integer userId);

    /**
     * 新增车队卡子卡
     *
     * @param fleetCardSub 车队卡子卡
     * @return 结果
     */
    int insertFleetCardSub(FleetCardSub fleetCardSub);

    FleetCardSubVo selectFleetCardSubById(Long id);

    /**
     * 修改车队卡子卡
     *
     * @param fleetCardSub 车队卡子卡
     * @return 结果
     */
    int updateFleetCardSub(FleetCardSub fleetCardSub);

    FleetCardSubVo selectOneFleetCardSub(Long enterpriseId, Integer userId);

    FleetCardSubVo selectFleetSubCardByCardNumber(String cardNumber);

    List<FleetCardSubVo> query(FleetCardSub fleetCardSubQuery);

    FleetCardSub getOne(FleetCardSub fleetCardSub);

    // 根据主卡id查询车队卡子卡信息
    FleetCardSubVo selectFleetSubCardByFleetCardId(Long fleetCardId);

}
